home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-12-12 | 3.6 KB | 105 lines | [TEXT/MPS ] |
- # MakeFile - Make instructions for Oberon examples.
- #
- # Copyright Apple Computer, Inc. 1986-1993
- # All rights reserved.
- #
- # This makefile builds:
- # The sample Pascal tool: ResEqual
- # The sample desk accessory: DAMemory
- # The sample Performance Tool: TestPerf
- #
-
- # You can define {SymOptions} as "-sym on" or "-sym off" for use with SADE
-
- OOptions = -s {SymOptions}
-
- .mod.o ƒ .mod
- Oberon {OOptions} {DepDir}{Default}.mod -o {TargDir}{Default}.mod.o
-
- # The following two variables define the creator and type for the
- # Memory Desk Accessory. For System 6 compatibility, the build
- # instructions should create a "Suitcase" file containing the DA.
- # Suitcase files have a creator of 'DMOV' and a type of 'DFIL'. For
- # System 7 and newer, DA's can exist all by themselves, without being
- # wrapped in the "womb" of the Suitcase file. This makes it easier
- # to manipulate the DA file, since the Suitcase doesn't have to be
- # opened first. DA's can be treated just like any other application.
- # In this case, the creator should be 'movr' and the type should be
- # 'dfil' (note the difference in character case).
-
- DACreator = 'movr' # change to 'DMOV' for System 6 use
- DAType = 'dfil' # change to 'DFIL' for System 6 use
-
- # The following variable is used to define the ROM map file used by the
- # TestPerf component. If necessary, you can change this to point to the
- # proper location of your machine's ROM map.
-
- RomMap = "{MPW}ROM Maps:Mac`gestalt mach -s`ROM.map"
-
- #######################################################################
- # Build instructions and dependencies for the ResEqual tool
- #
-
- ResEqual ƒƒ ResEqual.r
- Rez ResEqual.r -o ResEqual -append
- ResEqual ƒƒ ResEqual.mod.o FStubs.a.o
- Link -w -c 'MPS ' -t MPST {SymOptions} ResEqual.mod.o FStubs.a.o ∂
- -sn STDIO=Main ∂
- -sn INTENV=Main ∂
- -sn %A5Init=Init ∂
- "{Libraries}"Interface.o ∂
- "{Libraries}"Runtime.o ∂
- "{Libraries}"ToolLibs.o ∂
- "{PLibraries}"Paslib.o ∂
- "{OLibraries}"OberonLib.o ∂
- -o ResEqual
-
-
- #######################################################################
- # Build instructions and dependencies for the Memory desk accessory
- #
-
- DAMemory ƒƒ DAMemory.mod.o DAEntry.a.o
- Link {SymOptions} -w -da -rt DRVR=12 ∂
- -m DAEntry -sg DAMemory # DAEntry is located in DAEntry.a.o ∂
- DAEntry.a.o # This must preceed DRVRRuntime.o ∂
- "{Libraries}"DRVRRuntime.o # This must preceed DAMemory.p.o ∂
- -ma DAMemory_DRVRControl=DRVRCONTROL -ma DAMemory_DRVROpen=DRVROPEN ∂
- -ma DAMemory_DRVRClose=DRVRCLOSE -ma DAMemory_DRVRStatus=DRVRSTATUS ∂
- -ma DAMemory_DRVRPrime=DRVRPRIME ∂
- DAMemory.mod.o ∂
- "{Libraries}"Interface.o ∂
- "{PLibraries}"Paslib.o ∂
- -o DAMemory -c {DACreator} -t {DAType}
-
- DAMemory ƒƒ DAMemory.r
- Rez -rd -c {DACreator} -t {DAType} DAMemory.r -a -o DAMemory
-
- DAMemory.NOASM ƒ DAMemory.DRVW DAMemory.r
- Rez -rd -c {DACreator} -t {DAType} -d NOASM_BUILD DAMemory.r -o DAMemory.NOASM
- Duplicate -y DAMemory.NOASM DAMemory
-
- DAMemory.DRVW ƒ DAMemory.mod.o
- Link -w -rt DRVW=0 ∂
- -sg DAMemory ∂
- "{Libraries}"DRVRRuntime.o # This must preceed DAMemory.mod.o ∂
- DAMemory.mod.o ∂
- "{Libraries}"Interface.o ∂
- "{PLibraries}"Paslib.o ∂
- -o DAMemory.DRVW -c "????" -t "????"
-
-
- #######################################################################
- # Build instructions and dependencies for the TestPerf tool
- #
-
- TestPerf ƒ TestPerf.mod.o
- Link -o TestPerf -t MPST -c 'MPS ' -d {SymOptions} ∂
- -l -la > TestPerf.map # produce link map file ∂
- TestPerf.mod.o "{Libraries}"PerformLib.o ∂
- "{Libraries}"Interface.o ∂
- "{Libraries}"Runtime.o ∂
- "{PLibraries}"PasLib.o ∂
- "{OLibraries}"OberonLib.o
- Catenate {ROMMap} >>TestPerf.map
-